﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Threading;
using RootLibrary.WPF.Localization;
using ResourceBlender.Express.Properties;

namespace ResourceBlender.Express {
    /// <summary>
    /// Processes command line args and handles generic exceptions.
    /// </summary>
    public partial class App : Application {
        protected override void OnStartup(StartupEventArgs e) {
            base.OnStartup(e);
            LocalizeDictionary.Instance.Culture = new System.Globalization.CultureInfo("en-GB");
        }

        private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) {
            WinUnhandledException dlg = new WinUnhandledException(e.Exception);
            dlg.ShowDialog();
        }
    }
}
